﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020001AD RID: 429
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChallengeBossBuffInfo : IMessage<ChallengeBossBuffInfo>, IMessage, IEquatable<ChallengeBossBuffInfo>, IDeepCloneable<ChallengeBossBuffInfo>, IBufferMessage
	{
		// Token: 0x170005A0 RID: 1440
		// (get) Token: 0x06001350 RID: 4944 RVA: 0x000371EC File Offset: 0x000353EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChallengeBossBuffInfo> Parser
		{
			get
			{
				return ChallengeBossBuffInfo._parser;
			}
		}

		// Token: 0x170005A1 RID: 1441
		// (get) Token: 0x06001351 RID: 4945 RVA: 0x000371F3 File Offset: 0x000353F3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChallengeBossBuffInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170005A2 RID: 1442
		// (get) Token: 0x06001352 RID: 4946 RVA: 0x00037205 File Offset: 0x00035405
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChallengeBossBuffInfo.Descriptor;
			}
		}

		// Token: 0x06001353 RID: 4947 RVA: 0x0003720C File Offset: 0x0003540C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeBossBuffInfo()
		{
		}

		// Token: 0x06001354 RID: 4948 RVA: 0x00037214 File Offset: 0x00035414
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeBossBuffInfo(ChallengeBossBuffInfo other) : this()
		{
			this.buffOne_ = other.buffOne_;
			this.buffTwo_ = other.buffTwo_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001355 RID: 4949 RVA: 0x00037245 File Offset: 0x00035445
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeBossBuffInfo Clone()
		{
			return new ChallengeBossBuffInfo(this);
		}

		// Token: 0x170005A3 RID: 1443
		// (get) Token: 0x06001356 RID: 4950 RVA: 0x0003724D File Offset: 0x0003544D
		// (set) Token: 0x06001357 RID: 4951 RVA: 0x00037255 File Offset: 0x00035455
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BuffOne
		{
			get
			{
				return this.buffOne_;
			}
			set
			{
				this.buffOne_ = value;
			}
		}

		// Token: 0x170005A4 RID: 1444
		// (get) Token: 0x06001358 RID: 4952 RVA: 0x0003725E File Offset: 0x0003545E
		// (set) Token: 0x06001359 RID: 4953 RVA: 0x00037266 File Offset: 0x00035466
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BuffTwo
		{
			get
			{
				return this.buffTwo_;
			}
			set
			{
				this.buffTwo_ = value;
			}
		}

		// Token: 0x0600135A RID: 4954 RVA: 0x0003726F File Offset: 0x0003546F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChallengeBossBuffInfo);
		}

		// Token: 0x0600135B RID: 4955 RVA: 0x0003727D File Offset: 0x0003547D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChallengeBossBuffInfo other)
		{
			return other != null && (other == this || (this.BuffOne == other.BuffOne && this.BuffTwo == other.BuffTwo && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600135C RID: 4956 RVA: 0x000372BC File Offset: 0x000354BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.BuffOne != 0U)
			{
				num ^= this.BuffOne.GetHashCode();
			}
			if (this.BuffTwo != 0U)
			{
				num ^= this.BuffTwo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600135D RID: 4957 RVA: 0x00037314 File Offset: 0x00035514
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600135E RID: 4958 RVA: 0x0003731C File Offset: 0x0003551C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600135F RID: 4959 RVA: 0x00037328 File Offset: 0x00035528
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.BuffTwo != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.BuffTwo);
			}
			if (this.BuffOne != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.BuffOne);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001360 RID: 4960 RVA: 0x00037384 File Offset: 0x00035584
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.BuffOne != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BuffOne);
			}
			if (this.BuffTwo != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BuffTwo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001361 RID: 4961 RVA: 0x000373DC File Offset: 0x000355DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChallengeBossBuffInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.BuffOne != 0U)
			{
				this.BuffOne = other.BuffOne;
			}
			if (other.BuffTwo != 0U)
			{
				this.BuffTwo = other.BuffTwo;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001362 RID: 4962 RVA: 0x0003742C File Offset: 0x0003562C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001363 RID: 4963 RVA: 0x00037438 File Offset: 0x00035638
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					if (num != 112U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.BuffOne = input.ReadUInt32();
					}
				}
				else
				{
					this.BuffTwo = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040007F3 RID: 2035
		private static readonly MessageParser<ChallengeBossBuffInfo> _parser = new MessageParser<ChallengeBossBuffInfo>(() => new ChallengeBossBuffInfo());

		// Token: 0x040007F4 RID: 2036
		private UnknownFieldSet _unknownFields;

		// Token: 0x040007F5 RID: 2037
		public const int BuffOneFieldNumber = 14;

		// Token: 0x040007F6 RID: 2038
		private uint buffOne_;

		// Token: 0x040007F7 RID: 2039
		public const int BuffTwoFieldNumber = 5;

		// Token: 0x040007F8 RID: 2040
		private uint buffTwo_;
	}
}
